package com.shungen.realapigateway.service.impl;

import com.shungen.realapigateway.mapper.PointTransactionMapper;
import com.shungen.realapigateway.model.entity.PointTransaction;
import com.shungen.realapigateway.service.PointTransactionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author shungen
 * @date 2024年08月13日 16:36
 */
@Service
public class PointTransactionServiceImpl implements PointTransactionService {


    @Resource
    private PointTransactionMapper pointTransactionMapper;

    @Override
    public boolean addPointTransaction(PointTransaction pointTransaction) {
        int insert = pointTransactionMapper.insert(pointTransaction);
        return insert == 1;
    }
}
